home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / lib / udev / rules.d / 85-pcmcia.rules < prev    next >
Text File  |  2009-03-09  |  949b  |  29 lines

  1. # PCMCIA devices:
  2. #
  3. ACTION!="add", GOTO="pcmciautils_end"
  4.  
  5. # Very few CIS firmware entries (which we use for matching)
  6. # are so broken that we need to read out random bytes of it
  7. # instead of the manufactor, card or product ID. Then the
  8. # matching is done in userspace.
  9. SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
  10.         RUN+="/lib/udev/pcmcia-check-broken-cis"
  11.  
  12. # However, the "weak" matching by func_id is only allowed _after_ modprobe
  13. # returns, so that "strong" matches have a higher priority.
  14. SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
  15.         RUN+="/bin/sh -c 'echo 1 > /sys/$devpath/allow_func_id_match'"
  16.  
  17. # PCMCIA sockets:
  18. #
  19. # modprobe the pcmcia bus module so that 16-bit PCMCIA devices work
  20. SUBSYSTEM=="pcmcia_socket", \
  21.         RUN+="/sbin/modprobe -b pcmcia"
  22.  
  23. # if this is a PCMCIA socket which needs a resource database,
  24. # pcmcia-socket-startup sets it up
  25. SUBSYSTEM=="pcmcia_socket", \
  26.         RUN+="/lib/udev/pcmcia-socket-startup"
  27.  
  28. LABEL="pcmciautils_end"
  29.